<template>
  <div class="main">
     <van-nav-bar left-arrow title="生活缴费">
       <template #left>
        <i class="iconfont icon-zuojiantou" style="font-size:0.5rem; color:#ffffff" @click="goService"></i>
      </template>
      <template #right>
        <van-icon name="location-o" size="18" color="#fff5f6" />
      </template>
    </van-nav-bar>
    <div class="content">
    <div class="title">
        <span style="color:#919191;">新增缴费</span>
        <span><van-icon name="location-o" color="#fda896"/>城市</span>     
    </div>
    <van-grid :column-num="3" :border="false">
      <van-grid-item>
        <img src="../../assets/life/04.png" alt="" />
        <span>水费</span>
      </van-grid-item>
      <van-grid-item>
        <img src="../../assets/life/01.png" alt="" />
        <span>电费</span>
      </van-grid-item>
      <van-grid-item>
        <img src="../../assets/life/02.png" alt="" />
        <span>宽带</span>
      </van-grid-item>
      <van-grid-item @click="goHeat">
        <van-icon name="fire" color="#fc3c3b" style="font-size:35px"/>
        <span>燃气费</span>
      </van-grid-item>
      <van-grid-item @click="goTV">
        <van-icon name="tv-o" color="#fc3c3b" style="font-size:35px"/>
        <span>有线电视</span>
      </van-grid-item>
      <van-grid-item @click="goCost">
        <van-icon name="bulb-o" color="#fc3c3b" style="font-size:35px"/>
        <span>暖气费</span>
      </van-grid-item>
    </van-grid>
    </div>
    <div class="footer">
        <span><a href="http:#">缴费代扣</a></span><span>|</span> 
        <span><a href="http:#">户号管理</a></span><span>|</span>
        <span><a href="http:#">帮助中心</a></span>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    goService(){
      this.$router.push({path: "/service"})
    },
    goTV(){
      this.$router.push({path: "/tv"})
    },
    goHeat(){
      this.$router.push({path: "/heat"})
    },
    goCost(){
      this.$router.push({path: "/cost"})
    }
  }
}
</script>

<style lang="less" scoped>
.van-nav-bar {
  background: #ff5555;
  
}
/deep/.van-nav-bar__title{
  color: #f5f5f5;
}
/deep/.van-nav-bar__left{
  padding: 0 5px;
}
/deep/.van-nav-bar .van-icon {
    color: #fff5f6;
    
}
/deep/.van-nav-bar__text {
    color: #fff5f6;
}
.main{
  font-size: 12px;
header{
        height:86px;
    }
.content{
    margin: 0 10px;
    margin-top: 10px;
    border: 1px solid #f5f5f5;
    box-shadow:0 0 6px -5px ;
    img {
        width: 0.7rem;
    height: 0.8rem;
    }
}
.title{
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    color: #fda896;
}
.footer{
    text-align: center;
    margin-top:10px;
    span{
      font-size: 12px;
    a{
        color: #7c7c7c;
        font-size: 12px;
    }
    }
    
}
}
</style>